<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="../common.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Application List</title>
    <link href="${ctx}/resources/css/bootstrap/dashboard.css" rel="stylesheet">
    <link href="${ctx}/resources/css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="${ctx}/resources/js/highcharts/jquery-1.8.2.min.js"></script>
    <script src="${ctx}/resources/js/monitor/xl-monitor.js"></script>
    <%@include file="../common/head.jsp"%>
    <style type="text/css">
        ${demo.css}
        .col-sm-3{
            width : 33%;
        }

    </style>

</head>
<body>


<div class="p10 bg-fff">
    <div class="ant-breadcrumb">
            <span>
                <span class="ant-breadcrumb-link">首页</span>
                <span class="ant-breadcrumb-separator">/</span>
            </span>
            <span>
                <a class="ant-breadcrumb-link" href="${ctx}/project/list">项目列表</a>
                <span class="ant-breadcrumb-separator">/</span>
            </span>
            <span >
                <span class="ant-breadcrumb-link">${project.projName}</span>
                <span class="ant-breadcrumb-separator" >/</span>
            </span>
    </div>
</div>

<div class="container-solid">


    <div class="p20">
        <div class="bg-fff">
        <ul class="ant-menu ant-menu-horizontal  ant-menu-light ant-menu-root">
            <li class="ant-menu-item-selected ant-menu-item" ><span>Package列表</span></li>
            <div class="p15 pr20">
                <a class="btn btn-sm btn-info pull-right" href="${ctx}/version/edit?projId=${project.id}">创建Package</a>
            </div>
        </ul>
        <div class="table-responsive">
            <table class="table table-striped table-hover">
                <thead>
                    <tr>
                        <th>#序号</th>
                        <th>Package</th>
                        <th>主页</th>
                        <th>分支</th>
                        <th>描述</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                <c:forEach items="${versions}" var="version" varStatus="projectStatus">
                    <tr>
                        <td>${projectStatus.index + 1}</td>
                        <td><a href="${ctx}/version/edit?id=${version.id}&projId=${project.id}">${version.version}</a></td>
                        <td><a href="${project.homePage}" target="_blank">查看</a></td>
                        <td>${version.branch}&nbsp;</td>
                        <td>${version.description}&nbsp;</td>
                        <td><fmt:formatDate value="${project.createAt}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&nbsp;</td>
                        <td>
                            <%--<a href="${ctx}/project/build?id=${project.id}">build</a>&nbsp;&nbsp;|&nbsp;&nbsp;--%>
                            <a href="${ctx}/job/jobs?id=${version.id}">构建发布</a>
                        </td>
                    </tr>
                </c:forEach>

                </tbody>
            </table>
        </div>
        </div>
    </div>
</div>
</body>
</html>
